import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import { resolve } from 'path';
import svgr from 'vite-plugin-svgr'

// https://vite.dev/config/
export default defineConfig({
  plugins: [
    react(),
    svgr({
        svgrOptions: {
          icon: true,
          replaceAttrValues: {
            currentColor: '{props.color}'
          }
        }
    })
  ],

  resolve: {
    alias: {
      // eslint-disable-next-line no-undef
      '@': resolve(__dirname,'src')
    }
  }
})
